/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csci6450.chickenFriedFS.nuggetServer;

/**
 * This is a singleton class that will be used to store the settings the Nugget
 * Server is initialized with. It will keep them in one place to make it easier
 * to access.
 * @author jacobschoen
 */
public class RuntimeSettings {

    private static RuntimeSettings settings = new RuntimeSettings();

    private RuntimeSettings() {
    }

    /**
     * Gets the instance of this class.
     * @return
     */
    public static RuntimeSettings getInstance() {
        return settings;
    }

    private String fileStoreLocation = "ChickenFileSystem/chickenFileSytem.cfs";

    public String getFileStoreLocation(){
        return this.fileStoreLocation;
    }

    public void setFileStoreLocation(String set){
        this.fileStoreLocation = set;
    }

    private int numberOfChunks = 100;

    public int getNumberOfChunks(){
        return this.numberOfChunks;
    }

    public void setNumberOfChunks(int set){
        this.numberOfChunks = set;
    }

    private String metaServerIp = "127.0.0.1";

    /**
     * @return the metaServerIp
     */
    public String getMetaServerIp() {
        return metaServerIp;
    }

    /**
     * @param metaServerIp the metaServerIp to set
     */
    public void setMetaServerIp(String metaListenerIp) {
        this.metaServerIp = metaListenerIp;
    }
    
    private int metaServerPort = 3010;

    /**
     * @return the metaServerPort
     */
    public int getMetaServerPort() {
        return metaServerPort;
    }

    /**
     * @param metaServerPort the metaServerPort to set
     */
    public void setMetaServerPort(int metaServerPort) {
        this.metaServerPort = metaServerPort;
    }


    private int metaListenerPort = 3030;

    public int getMetaListenerPort(){
        return this.metaListenerPort;
    }

    public void setMetaListenerPort(int set){
        this.metaListenerPort = set;
    }

    private int clientListenerPort = 3050;

    public int getClientListenerPort(){
        return this.clientListenerPort;
    }

    public void setClientListenerPort(int set){
        this.clientListenerPort = set;
    }

    private String nuggetServerLogLocation = "/logs/NuggetLog.txt";

    public String getNuggetServerLogLocation(){
        return this.nuggetServerLogLocation;
    }

    public void setNuggetServerLogLocation(String set){
        this.nuggetServerLogLocation = set;
    }

    private int replicationPort = 4500;

    public int getReplicationPort(){
        return this.replicationPort;
    }

    public void setReplicationPort(int set){
        this.replicationPort = set;
    }


    private int replicationManagerPort = 4500;

    public int getReplicationManagerPort(){
        return this.replicationManagerPort;
    }

    public void setReplicationManagerPort(int set){
        this.replicationManagerPort = set;
    }
    
}
